<template>
    <div class="box">
        <h1>我是子组件默认插槽</h1>
        <slot></slot>
        <hr>
        <h1>具名插槽填充数据</h1>
        <slot name="a"></slot>
        <hr>
        <h1>具名插槽填充数据</h1>
        <slot name="b"></slot>
    </div>
</template>

<script setup lang="ts">
</script>

<style scoped>
.box {
    width: 100vw;
    height: 300px;
    background: skyblue;
}
</style>